package com.jenkins.service.impl;

import com.jenkins.model.Users;
import com.jenkins.service.UserService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Mr.Yu
 * @Date: 2021/3/28 16:56
 * @description
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Override
    public List<Users> list() {
        List<Users> list = new ArrayList<>();

        Users user = new Users();
        user.setId("1");
        user.setUsername("余智勇");
        user.setPassword("123456");
        list.add(user);

        Users user1 = new Users();
        user1.setId("2");
        user1.setUsername("秦凯");
        user1.setPassword("123456");
        list.add(user1);

        Users user2 = new Users();
        user2.setId("3");
        user2.setUsername("里斯");
        user2.setPassword("123456");
        list.add(user2);
        return list;
    }
}

